package com.ygqh.baby.controller.admin;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ygqh.baby.po.AdminPermission;

import com.ygqh.baby.shiro.utils.SessionUtil;

@Controller
@RequestMapping("admin/index")
public class IndexController extends BaseController<Object, java.lang.Long> {
	
	@RequestMapping("getUser")
	@ResponseBody
	public String getUser(){
		return getSession().getUserName();
		
		
	}
	@RequestMapping("getMenus")
	@ResponseBody
	public List<AdminPermission> getMenus(){
		
	 // return SessionUtil.getCurrentUser().getMenus();
		
		return null;
	}
	

}
